home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / sample code / printing / scriptable print simpletext / coerceprgeneral.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-24  |  1.3 KB  |  53 lines

  1. /*
  2. **    File:        CoercePrGeneral.h
  3. **
  4. **    Definitions needed to call the kPrCoerceOp PrGeneral call directly
  5. **
  6. ** Copyright 1999 Apple Computer. All rights reserved.
  7. **
  8. **    You may incorporate this sample code into your applications without
  9. **    restriction, though the sample code has been provided "AS IS" and the
  10. **    responsibility for its operation is 100% yours. However, what you are
  11. **    not permitted to do is to redistribute the source as "DSC Sample Code"
  12. **    after having made changes. If you're going to re-distribute the source,
  13. **    we require that you make it clear in the source that the code was
  14. **    descended from Apple Sample Code, but that you've made changes.
  15. */
  16.  
  17. #ifndef __COERCEPRGENERAL__
  18. #define __COERCEPRGENERAL__
  19.  
  20. #ifndef __PRINTAETYPES__
  21. #include "PrintAETypes.h"
  22. #endif
  23.  
  24. #if PRAGMA_ONCE
  25. #pragma once
  26. #endif
  27.  
  28. #if PRAGMA_STRUCT_ALIGN
  29.     #pragma options align=mac68k
  30. #elif PRAGMA_STRUCT_PACKPUSH
  31.     #pragma pack(push, 2)
  32. #elif PRAGMA_STRUCT_PACK
  33.     #pragma pack(2)
  34. #endif
  35.  
  36. typedef struct {
  37.     short iOpCode;
  38.     short iError;
  39.     long lReserved;
  40.     const AEDesc *fromDesc;
  41.     DescType toType;
  42.     AEDesc *toDesc;
  43. } PrCoerceStruct;
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=reset
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(pop)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack()
  51. #endif
  52.  
  53. #endif /* __COERCEPRGENERAL__ */